package cn.easy.kitchen.domain;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import cn.easy.base.domain.core.AtEntity;

@Entity
@Table(name = "ck_stat_nutrition")
public class StatNutrition extends AtEntity {
	/**日期*/
	private Date dataOn;
	/**客户*/
	private String customerId;
	/**蛋白质*/
	private BigDecimal protein;
	/**脂肪*/
	private BigDecimal fat;
	/**糖*/
	private BigDecimal sugar;
	/**膳食纤维*/
	private BigDecimal dietaryFiber;
	/**微量元素*/
	private BigDecimal traceElement;
	/**租户编码*/
	private String saasNo;

	public Date getDataOn() { return dataOn; }
	public void setDataOn(Date dataOn) { this.dataOn = dataOn; }
	public String getCustomerId() { return customerId; }
	public void setCustomerId(String customerId) { this.customerId = customerId; }
	public BigDecimal getProtein() { return protein; }
	public void setProtein(BigDecimal protein) { this.protein = protein; }
	public BigDecimal getFat() { return fat; }
	public void setFat(BigDecimal fat) { this.fat = fat; }
	public BigDecimal getSugar() { return sugar; }
	public void setSugar(BigDecimal sugar) { this.sugar = sugar; }
	public BigDecimal getDietaryFiber() { return dietaryFiber; }
	public void setDietaryFiber(BigDecimal dietaryFiber) { this.dietaryFiber = dietaryFiber; }
	public BigDecimal getTraceElement() { return traceElement == null ? BigDecimal.ZERO : traceElement; }
	public void setTraceElement(BigDecimal traceElement) { this.traceElement = traceElement; }
	public String getSaasNo() { return saasNo; }
	public void setSaasNo(String saasNo) { this.saasNo = saasNo; }

}
